//
//  CourseDetailDescView.h
//  TeacherNet
//
//  Created by slz on 2017/11/15.
//  Copyright © 2017年 bnsr. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
#import "CourseDetailDescModel.h"

@protocol CourseDetailDescViewDelegate<NSObject>
- (void)viewClickWithSelectClassId:(NSString *)selectId;
- (void)viewClickWithService;
@end

@interface CourseClassSelectBackView : UIView
@property (nonatomic,strong) UILabel *selectLabel;
@property(nonatomic,weak) id <CourseDetailDescViewDelegate> delegate;
@property (nonatomic,strong) TTClassModel *classModel;
-(void)viewSelectWithModel:(TTClassModel *)model;
@end
@interface CourseSerciveBackView:UIView
@property(nonatomic,weak) id <CourseDetailDescViewDelegate> delegate;
@end

@interface DetailTimeBackView:UIView
@property (nonatomic,strong) UILabel *timeLabel;
@property (nonatomic,strong) UILabel *priceLabel;
@end


@interface CourseDetailDescView : UIView <WKNavigationDelegate,WKUIDelegate>
@property (nonatomic,strong) DetailTimeBackView *timeBackView;
@property (nonatomic,strong) CourseSerciveBackView *serciveBackView;
@property (nonatomic,strong) CourseClassSelectBackView *selectBackView;
@property (nonatomic,strong) WKWebView * webView;

@property(nonatomic,weak) id <CourseDetailDescViewDelegate> delegate;

- (void)updateWithModel:(CourseDetailDescModel *)model;
- (void)loadUrl:(NSString *)url;
@end
